<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/9/22 0022
  Time: 21:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" pageEncoding="utf-8" %>
<%@ include file="/include/taglibs.jsp" %>
<script src="${path}/static/taoshunda/dispatcher/no.js"></script>
<link href="${path}/static/css/public/public.css" rel="stylesheet" type="text/css">

<div class="input-group col-xs-2" style="float: left;margin-bottom: 5px">
    <input type="text" class="form-control entry" id="nameDis" placeholder="配送人员名称">
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 5px">
    <input type="text" id="created" class="form-control rangedate entry" placeholder="注册时间"/>
</div>
<div class="input-group col-xs-2" style="float: left;margin-bottom: 5px">
    <input type="text" id="loginTime" class="form-control rangedate entry" placeholder="最后登录时间"/>
</div>
<div style="float: left;margin-bottom: 3px;margin-left: 3px">
    <select class="form-control entry" id="citys">
        <option value="0">--城市选择--</option>
    </select>
</div>

<div style="float: left;margin-left: 10px;margin-bottom: 5px">
    <button type="button" class="btn query_button" id="btnsearch" onclick="queryNoDispatcher()"
            style="float: left;width: 150%">
        <%--<span class="glyphicon glyphicon-search" aria-hidden="true"></span>--%>
        查询
    </button>
</div>

<table id="table"
       style="background-color:white"
       data-toggle="table"
       data-url="${path}/web/dispatcher/queryNoAuthentication"
       data-toolbar="#toolbar"
       data-side-pagination="server"
       data-pagination="true"
       data-page-list="[5, 10, 20, 50, 100, 200]"
>
    <thead>
    <tr>
        <th data-field="id" data-visible="false">编号</th>
        <th data-field="name">名称</th>
        <th data-field="account">账号</th>
        <th data-field="cityName">城市</th>
        <%--<th data-field="address">地址</th>--%>
        <th data-field="created">创建时间</th>
        <th data-field="lastTime">最后登录时间</th>
        <th data-formatter="dispatcher.certification">配送员认证</th>
        <%--<th data-formatter="dispatcher.status">配送员状态</th>--%>
        <%--<th data-formatter="dispatcher.state" data-events="operate">启用/禁用</th>--%>
        <th data-formatter="dispatcher.operateFormatter" data-events="operateEvent">操作</th>
    </tr>
    </thead>
</table>


<div id="queryDispatcherOrder-div" class="slidingmenu box-model box box-info" style="z-index:0;" model-width="45%">
    <div class="box-header">
        <h3 class="box-title">订单信息</h3>
    </div>
    <div class="box box-info">
        <div class="box-body">
            <table id="orderDispatcher"
                   data-toggle="table"
                   data-side-pagination="server"
                   data-pagination="true"
                   data-page-list="[50, 100, 200]">
                <thead>
                <tr>
                    <th data-field="order_number">订单编号</th>
                    <th data-field="nickName">用户</th>
                    <th data-field="bussName">商家</th>
                    <th data-field="all_money">金额</th>
                    <th data-field="goodsName">商品名称</th>
                    <th data-formatter="orderState">订单状态</th>
                    <th data-formatter="payType">支付方式</th>
                    <th data-field="created">创建时间</th>
                </tr>
                </thead>
            </table>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div>
    </div>
</div>

<div id="queryDispatcherDetails-div" class="slidingmenu box-model box box-info" style="z-index:0;" model-width="45%">
    <div class="box-header">
        <h3 class="box-title">收支明细</h3>
    </div>
    <div class="box box-info">
        <div class="box-body">
            <table id="detailsDispatcher"
                   data-toggle="table"
                   data-side-pagination="server"
                   data-pagination="true"
                   data-page-list="[50, 100, 200]">
                <thead>
                <tr>
                    <th data-field="sourceType">金额来源</th>
                    <th data-field="balance">金额</th>
                    <th data-field="created">创建时间</th>
                </tr>
                </thead>
            </table>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div>
    </div>
</div>

<div id="updateDispatcher-div" class="slidingmenu box-model box box-info" style="z-index:0;" model-width="45%">
    <div class="box-header">
        <h3 class="box-title">修改配送员信息</h3>
    </div>
    <div class="box box-info">
        <div class="box-body">
            <form id="updateDispatcherFrom" method="post" role="form">
                <input id="id" type="hidden" name="id">
                <div class="form-group">
                    <label>账号:</label>
                    <input type="text" class="form-control " id="account" name="account" required="required"
                           style="width: 50%">
                </div>

                <div class="form-group">
                    <label>名称:</label>
                    <input type="text" class="form-control " id="name" required="required" name="name"
                           style="width: 50%">
                </div>

                <div class="form-group">
                    <input type="hidden" id="provincesIdUpdate" name="provincesId">
                    <input type="hidden" id="to">
                    <label>省份:</label>
                    <select class="form-control" id="getAllCitys" style="width: 50%" onclick="inquiryJunior()">
                        <option value="0">--请选择--</option>
                    </select>
                </div>

                <div class="form-group" style="display: none" id="show">
                    <input type="hidden" id="cityHierarchyUpdate" name="cityId">
                    <input type="hidden" id="assignment">
                    <label>城市:</label>
                    <select class="form-control" id="getJuniorCitys" style="width: 50%" onclick="inquiryCity()">
                        <option value="0">--请选择--</option>
                    </select>
                </div>

                <div class="form-group" style="display: none" id="show1">
                    <input type="hidden" id="regionIdUpdate" name="areaId">
                    <input type="hidden" id="with">
                    <label>区域:</label>
                    <select class="form-control" id="getRegionCitys" style="width: 50%">
                        <option value="0">--请选择--</option>
                    </select>
                </div>

                <div class="form-group">
                    <label>地址:</label>
                    <input type="text" class="form-control " id="address" required="required" name="address"
                           style="width: 50%">
                </div>

                <div class="form-group">
                    <label>头像:</label><br>
                    <input type="hidden" name="headPic" id="pic">
                    <img  height="150" id="headPic" src="${path}/static/images/commons/img_add.png"
                         class="addImage"><br><span style="color: red">推荐上传图片为800 x 800以上分辨率的图片</span>
                </div>
            </form>
            <div class="box-footer">
                <button class="btn btn-info" data-event="submit-updateDispatcher">确定</button>
                &nbsp;
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div>
    </div>
</div>

<div id="resetPasswordDispatcher-div" class="slidingmenu box-model box box-info" model-width="45%" model-height="60%">
    <div class="box-header">
        <h3 class="box-title">重置密码</h3>
    </div>
    <div>

        <form role="form" method="post" id="resetPasswordFrom">
            <input id="ids" name="id" type="hidden">
            <div class="form-group" style="margin-left:20%;margin-top: 10%">
                <label>重置密码:</label>
                <input type="text" class="form-control " name="pwd" value="123456" required="required"
                       readonly="readonly"
                       id="resetPassword"
                       style="width: 50%">
            </div>
        </form>
    </div>
    <div style="margin-left: 10%;margin-top: 20%">
        <button class="btn btn-info" data-event="submit-resetPassword">确定</button>
        &nbsp;
        <button class="btn btn-danger close-model" style="margin-left: 50%">关闭</button>
    </div>
</div>

<div id="queryDispatcherPic-div" class="slidingmenu box-model box box-info" model-width="70%" model-left="40%" >
    <div class="box-header">
        <h3 class="box-title">配送员认证图片</h3>
    </div>
    <div class="col-xs-3" style="margin-top: 5%">
        <div class="form-group">
            <label style="margin-left: 1%">&nbsp;手持照片:</label><br>
            <img  width="200" id="photo" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
        </div>
    </div>
    <div class="col-xs-3" style="margin-top: 5%">
        <div class="form-group">
            <label style="margin-left: 1%">身份证正面:</label><br>
            <img  width="200" id="card" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
        </div>
    </div>
    <div class="col-xs-3" style="margin-top: 5%">
        <div class="form-group">
            <label style="margin-left: 1%">身份证反面:</label><br>
            <img width="200" id="photoCon" src="${path}/static/images/commons/img_add.png" onclick="enlargeImage(this)">
        </div>
    </div>
    <div class="col-xs-6" style="margin-top: 8%">
        <div class="box-footer">
            <button class="btn btn-info" data-event="submit-resetPassword">确定</button>
            &nbsp;
            <button class="btn btn-danger close-model">关闭</button>
        </div>
    </div>

</div>

<div id="detailImage-div" style="z-index:999"  class="slidingmenu box-model box box-info">
    <div class="box box-info">
        <div class="box-body">
            <div class="form-group">
                <div id="image" style="margin-top: 5%">

                </div>
            </div>
            <div class="box-footer">
                <button class="btn btn-danger close-model">关闭</button>
            </div>
        </div><!-- /.box-body -->
    </div>
</div>